package net.xiangcaowuyu.example1.domain;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@IdClass(SysUserRole.class)
@Data
@Table(name = "sys_user_role")
public class SysUserRole implements Serializable {

  @Id
  @Column(name = "user_id")
  private long userId;

  @Id
  @Column(name = "role_id")
  private long roleId;

}
